const TOKEN_KEY = "app_user_token";

export const getToken = () => {
  const token = JSON.parse(localStorage.getItem(TOKEN_KEY));
  return { accessToken: "", refreshToken: "", ...token };
};
export const setToken = (token) => {
  localStorage.setItem(TOKEN_KEY, JSON.stringify(token));
};
export const removeToken = () => {
  localStorage.removeItem(TOKEN_KEY);
};
